package com.managermype.util;

/**
 * 
 * @author juandiego
 *
 */
public enum Error {

	/**
	 * Error's Codes
	 */
	
	MISSING_REQUEST_PARAMETER("0400"),
	TYPE_MISMATCH("0400"),
	NOT_FOUND_RESOURCE("0400"),
	MISSING_PARAMETER_REQUEST(""),
	REQUEST_METHOD_NOT_SUPPORTED("0405"),
	INTERNAL_SERVER_ERROR("0500"),
	MESSAGE_NOT_READABLE("0400"),
	MEDIA_TYPE_NOT_SUPPORTED("0415"),
	MEDIA_TYPE_NOT_ACCEPTABLE("0406"),
	CONVERSION_NOT_SUPPORTED("0500"),
	GENERIC_ERROR("9999"),
	UNSUCCESS_LOGIN("0200"),
	SESSION_EXPIRED("0901");
	
	private String errorCode;
	
	Error(String errorCode){
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}
		
}
